home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1998 / MacHack 1998.toast / The Hacks! / Talking KeyBoard / Source / AppleEvents / aeutils.h < prev   
Encoding:
Text File  |  1997-08-12  |  1.7 KB  |  39 lines  |  [TEXT/CWIE]

  1. pascal Boolean OptionKeyPressed(const EventRecord *theEvent);
  2. pascal Boolean CtrlKeyPressed(const EventRecord *theEvent);
  3. pascal Boolean FeatureIsImplemented ( OSType theFeature, short theTestBit );
  4. pascal Boolean GestaltAvailable(void);
  5. Boolean IsTrapAvailable(short theTrap);
  6. pascal long GreaterOf(long A, long B);
  7. pascal long LesserOf(long A, long B);
  8. OSErr MakeSelfAddress(AEAddressDesc *selfAddress);
  9. OSErr AddResultToReply(AEDesc* result, AEDesc* reply, OSErr error);
  10. OSErr GotRequiredParams(const AppleEvent *theAppleEvent);
  11.  
  12. OSErr GetEnumeratedFromDescriptor(const AEDesc *sourceDesc, DescType  *result);
  13. OSErr PutEnumeratedToDescriptor(AEDesc* aDesc, unsigned long enumval);
  14.  
  15. OSErr GetPointFromDescriptor(const AEDesc *sourceDesc, Point  *result);
  16. OSErr PutPointToDescriptor(AEDesc *aDesc, Point pt);
  17.  
  18. OSErr PutPStringToDescriptor(AEDesc* aDesc, StringPtr pStr);
  19. OSErr GetPStringFromDescriptor(const AEDesc *aDesc, StringPtr resultStr);
  20.  
  21. OSErr PutRectToDescriptor(AEDesc* aDesc, Rect theRect);
  22. OSErr GetRectFromDescriptor(const AEDesc *sourceDesc, Rect *result);
  23.  
  24. OSErr GetHandleFromDescriptor(const AEDesc* sourceDesc, Handle resultHandle, long theType);
  25. OSErr PutHandleToDescriptor(AEDesc* aDesc, Handle thedata, long theType);
  26.  
  27. OSErr GetLongIntFromDescriptor(const AEDesc *sourceDesc, long *result);
  28. OSErr PutLongIntToDescriptor(AEDesc* aDesc, long val);
  29.  
  30. OSErr GetIntegerFromDescriptor(const AEDesc *sourceDesc, short *result);
  31. OSErr PutIntegerToDescriptor(AEDesc* aDesc, short val);
  32.  
  33. OSErr GetBooleanFromDescriptor(const AEDesc *sourceDesc, Boolean *result);
  34. OSErr PutBooleanToDescriptor(AEDesc* aDesc, Boolean val);
  35.  
  36. void GetRawDataFromDescriptor(const AEDesc *theDesc, Ptr destPtr, Size destMaxSize, Size *actSize);
  37.  
  38.  
  39. extern Boolean gIgnoreThisAppleEvent;